package string;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Author: hujian
 * @Date: 2019/10/9 14:35
 * @Description: <描述>
 */
public class StringTest {

    //    public static void main(String[] args) {
//        String a = "a" + "b" + 1;
//        String b = "ab1";
//        System.out.println(a == b);
//    }
//    public static void main(String[] args) {
//        int[] types = {-1, 5};
//        System.out.println(Arrays.toString(types).replaceAll("\\[|\\]", ""));
//    }
    public static void main(String[] args) {
        String[] indices = {"similar_book_pro", "similar_book", "similar_free", "similar_vip", "similar_en"};
        List<String> indicesList = new ArrayList<>(Arrays.asList(indices));
        indicesList.remove("similar_en");
        String[] strings = indicesList.toArray(new String[]{});
        Object[] objects = indicesList.toArray();
        String s = Arrays.toString(indicesList.toArray());
        System.out.println(Arrays.toString(indicesList.toArray()));
    }
}
